<?php
/**
 * Created by PhpStorm.
 * User: 小明 <gongm@tongwei.com>
 * Date: 2017-02-09
 * Time: 15:08
 */

namespace App\Models\Portal;

use App\Models\DiscuzOrmModel;

class DiscuzCategoryModel extends DiscuzOrmModel
{
    // 字段
    const FIELD_CATID = 'catid';                //类别 ID
    const FIELD_UPID = 'upid';                  //父类别 ID
    const FIELD_CATNAME = 'catname';            //类别名称
    const FIELD_ARTICLES = 'articles';          //文章总数
    const FIELE_ISFIXED = 'isfixed';            //是否固定
    const FIELD_DISPLAYORDER = 'displayorder';  //显示顺序
    const FIELD_CLOSED = 'closed';              //是否关闭
    const FIELD_ALLOWCOMMENT = 'allowcomment';  //是否允许评论
    const FIELD_LASTPUBLISH = 'lastpublish';    //最后发布文章时间

    // 表
    protected $table = 'tw_portal_category';
}